package com.ac.app.dm;

import com.ac.core.dm.BaseDm;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2004</p>
 * <p>Company: AgileCentury </p>
 * @author <a href="mailto:ac@agilecentury.com">Agile</a>
 * @version 1.0
 */

public class PickSubject extends BaseDm {
	private static final long serialVersionUID = 1L;
	private String subCode;
    private String subName;
    private String subDesc;
    private String prtCode;

    public String getSubCode() {
        return this.subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }

    public String getSubName() {
        return this.subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public String getSubDesc() {
        return this.subDesc;
    }

    public void setSubDesc(String subDesc) {
        this.subDesc = subDesc;
    }

    public String getPrtCode() {
        return this.prtCode;
    }

    public void setPrtCode(String prtCode) {
        this.prtCode = prtCode;
    }

    protected int doHashCode() {
        return getHashCodeBuilder().append(subCode).toHashCode();
    }

    protected boolean doEquals(Object object) {
        PickSubject other = (PickSubject) object;
        return getEqualsBuilder().append(subCode, other.subCode).isEquals();
    }
}
